tu = (1,2,3,4,5,6,7,8)

# 元组中的数据是不能修改的,一旦初始化了,就不能修改

# def get_user_info():
#     name = 'John Doe'
#     age = 30
#     email = 'john@example.com'
#     return (name, age, email)
#
# user_info = get_user_info()
# print(user_info)  # 输出: ('John Doe', 30, 'john@example.com')



def get_user_info():
    name = 'John Doe'
    age = 30
    email = 'john@example.com'
    return (name, age, email)



# 主函数
if __name__ == '__main__':
    print("h")

    # 解包元组，按照顺序将元组中的元素赋值给对应的变量
    name, age, email = get_user_info()
    print(name)  # 输出: John Doe
    print(age)   # 输出: 30
    print(email) # 输出: john@example.com


